﻿using DBUtility;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace WinServer
{
    public class CreateJob
    {
        public void Start()
        {
            //Timer timer = new Timer(OnTimer);
            //int timeSeconds = 1000 * 60 * 60 * 24 * 1;
            //timer.Change(0, timeSeconds);
        }

        private void OnTimer(object state)
        {
            //string tempDataBase = "DataRecord" + DateTime.Now.ToString("MMdd");
            //Console.WriteLine(DateTime.Now.ToString("mm:ss"));
            //string sql = $"CREATE TABLE IF NOT EXISTS`{tempDataBase}` (  `id` int(11) NOT NULL AUTO_INCREMENT,  `data` blob DEFAULT NULL,  PRIMARY KEY (`id`)) ENGINE=InnoDB DEFAULT CHARSET=latin1;";
            //int result = MYSQLHelper.Update(sql);
            //System.Threading.Thread.Sleep(1000);
            //ConstDefine.UseRecordTableName = "DataRecord" + DateTime.Now.ToString("MMdd");
        }
    }
}